Skip to content

Commit

Permalink
chore: configure and run ESLint over its configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Sep 10, 2020
1 parent 739f9ef commit f60418a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the Symfony Webpack Encore package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

module.exports = {
"root": true,
"plugins": ["node", "header"],
Expand Down Expand Up @@ -39,7 +48,7 @@ module.exports = {
"after": true
}],
"no-console": "off",
"valid-jsdoc": ["error", {"requireParamDescription": false, "requireReturnDescription": false}],
"valid-jsdoc": ["error", { "requireParamDescription": false, "requireReturnDescription": false }],
"node/no-unsupported-features": ["error", { version: 8 }],
"node/no-deprecated-api": "error",
"node/no-missing-import": "error",
Expand All @@ -54,6 +63,14 @@ module.exports = {
"node/no-unpublished-bin": "error",
"node/no-unpublished-require": "error",
"node/process-exit-as-throw": "error",
"header/header": [2, "block", {"pattern": "This file is part of the Symfony Webpack Encore package"}]
}
"header/header": [2, "block", { "pattern": "This file is part of the Symfony Webpack Encore package" }]
},
"overrides": [
{
"files": [".eslintrc.js"],
"rules": {
"quotes": ["error", "double"],
},
}
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "mocha --reporter spec test --recursive",
"lint": "eslint lib test index.js",
"lint": "eslint lib test index.js .eslintrc.js",
"travis:lint": "npm run lint"
},
"bin": {
Expand Down
9 changes: 9 additions & 0 deletions test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is part of the Symfony Webpack Encore package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

module.exports = {
"env": {
"node": true,
Expand Down

0 comments on commit f60418a

Please sign in to comment.