Skip to content

Commit

Permalink
Update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Aug 12, 2021
1 parent 00dddf4 commit 1b2c452
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 36 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Expand Up @@ -84,6 +84,3 @@ jobs:
- run:
name: Lint
command: npm run lint
- run:
name: Check
command: npm run valid
13 changes: 12 additions & 1 deletion .eslintrc.js
Expand Up @@ -10,7 +10,12 @@ module.exports = {
node: true,
mocha: true
},
extends: ['plugin:eslint-plugin/recommended', 'prettier'],
extends: [
'plugin:eslint-plugin/recommended',
'prettier',
'plugin:node-dependencies/recommended',
'plugin:jsonc/recommended-with-jsonc'
],
plugins: ['eslint-plugin', 'prettier'],
rules: {
'accessor-pairs': 2,
Expand Down Expand Up @@ -139,6 +144,12 @@ module.exports = {

'eslint-plugin/fixer-return': 'off'
}
},
{
files: ['*.json'],
rules: {
'prettier/prettier': 'off'
}
}
]
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Expand Up @@ -6,7 +6,9 @@
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
"vue",
"json",
"jsonc"
],
"typescript.tsdk": "node_modules/typescript/lib",
"vetur.validation.script": false,
Expand Down
10 changes: 9 additions & 1 deletion eslint-internal-rules/.eslintrc.json
Expand Up @@ -2,5 +2,13 @@
"rules": {
"consistent-docs-description": "error",
"no-invalid-meta": "error"
}
},
"overrides": [
{
"files": ["*.json"],
"rules": {
"no-invalid-meta": "off"
}
}
]
}
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -19,8 +19,7 @@
"update": "node ./tools/update.js",
"docs:watch": "vuepress dev docs",
"predocs:build": "npm run update",
"docs:build": "vuepress build docs",
"valid": "node tools/valid-dependencies-engines"
"docs:build": "vuepress build docs"
},
"files": [
"lib"
Expand Down Expand Up @@ -73,6 +72,8 @@
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-eslint-plugin": "^2.2.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsonc": "^1.4.0",
"eslint-plugin-node-dependencies": "^0.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "file:.",
"eslint4b": "^7.0.0",
Expand Down
28 changes: 0 additions & 28 deletions tools/valid-dependencies-engines.js

This file was deleted.

0 comments on commit 1b2c452

Please sign in to comment.