Skip to content

Commit 5f902d7

Browse files
Use .eslintrc.js instead of eslintConfig
Using a .eslintrc.js file is more flexible and the preferred way in all our projects. It has the advantage, that it makes it easier to adapt the ESLint configuration, e.g. to exclude files from linting as it is done in pc-nrfconnect-npm.
1 parent e1a4586 commit 5f902d7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2023 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
5+
*/
6+
7+
module.exports = require('@nordicsemiconductor/pc-nrfconnect-shared/config/eslintrc');

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,5 @@
4949
"devDependencies": {
5050
"@nordicsemiconductor/pc-nrfconnect-shared": "^234.0.0"
5151
},
52-
"eslintConfig": {
53-
"extends": "./node_modules/@nordicsemiconductor/pc-nrfconnect-shared/config/eslintrc"
54-
},
5552
"prettier": "@nordicsemiconductor/pc-nrfconnect-shared/config/prettier.config.js"
5653
}

0 commit comments

Comments
 (0)