Add linting for config files and scripts
This commit is contained in:
parent
1c69652a55
commit
ba5fbf831e
2 changed files with 13 additions and 1 deletions
12
.eslintrc.js
12
.eslintrc.js
|
@ -162,6 +162,17 @@ module.exports = {
|
|||
]
|
||||
},
|
||||
overrides: [
|
||||
// Config files and development scripts
|
||||
{
|
||||
files: [
|
||||
'./babel.config.js',
|
||||
'./.eslintrc.js',
|
||||
'./postcss.config.js',
|
||||
'./webpack.*.js',
|
||||
'./scripts/**/*.js'
|
||||
]
|
||||
},
|
||||
// JavaScript source files
|
||||
{
|
||||
files: [
|
||||
'./src/**/*.js',
|
||||
|
@ -211,6 +222,7 @@ module.exports = {
|
|||
rules: {
|
||||
}
|
||||
},
|
||||
// TypeScript source files
|
||||
{
|
||||
files: [
|
||||
'./src/**/*.ts',
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
"prepare": "node ./scripts/prepare.js",
|
||||
"build:development": "webpack --config webpack.dev.js",
|
||||
"build:production": "webpack --config webpack.prod.js",
|
||||
"lint": "eslint \"src/\"",
|
||||
"lint": "eslint \"./\"",
|
||||
"stylelint": "npm run stylelint:css && npm run stylelint:scss",
|
||||
"stylelint:css": "stylelint \"src/**/*.css\"",
|
||||
"stylelint:scss": "stylelint --config=\".stylelintrc.scss.json\" \"src/**/*.scss\""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue