Skip to content

Commit f60418a

Browse files
committed
chore: configure and run ESLint over its configuration files
1 parent 739f9ef commit f60418a

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

.eslintrc.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* This file is part of the Symfony Webpack Encore package.
3+
*
4+
* (c) Fabien Potencier <[email protected]>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
110
module.exports = {
211
"root": true,
312
"plugins": ["node", "header"],
@@ -39,7 +48,7 @@ module.exports = {
3948
"after": true
4049
}],
4150
"no-console": "off",
42-
"valid-jsdoc": ["error", {"requireParamDescription": false, "requireReturnDescription": false}],
51+
"valid-jsdoc": ["error", { "requireParamDescription": false, "requireReturnDescription": false }],
4352
"node/no-unsupported-features": ["error", { version: 8 }],
4453
"node/no-deprecated-api": "error",
4554
"node/no-missing-import": "error",
@@ -54,6 +63,14 @@ module.exports = {
5463
"node/no-unpublished-bin": "error",
5564
"node/no-unpublished-require": "error",
5665
"node/process-exit-as-throw": "error",
57-
"header/header": [2, "block", {"pattern": "This file is part of the Symfony Webpack Encore package"}]
58-
}
66+
"header/header": [2, "block", { "pattern": "This file is part of the Symfony Webpack Encore package" }]
67+
},
68+
"overrides": [
69+
{
70+
"files": [".eslintrc.js"],
71+
"rules": {
72+
"quotes": ["error", "double"],
73+
},
74+
}
75+
],
5976
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "mocha --reporter spec test --recursive",
8-
"lint": "eslint lib test index.js",
8+
"lint": "eslint lib test index.js .eslintrc.js",
99
"travis:lint": "npm run lint"
1010
},
1111
"bin": {

test/.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* This file is part of the Symfony Webpack Encore package.
3+
*
4+
* (c) Fabien Potencier <[email protected]>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
110
module.exports = {
211
"env": {
312
"node": true,

0 commit comments

Comments
 (0)