diff --git a/.eslintrc.yml b/.eslintrc.yml index 6119e624..5d54ddb2 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,6 +1,8 @@ extends: - plugin:@mysticatea/es2015 - plugin:@mysticatea/+node + - plugin:node-dependencies/recommended + - plugin:jsonc/recommended-with-jsonc globals: { root: "off" } @@ -19,6 +21,9 @@ overrides: - error - allowModules: - estree + - files: "package.json" + rules: + '@mysticatea/prettier': off settings: node: diff --git a/package.json b/package.json index 81be9300..5197b8e0 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,8 @@ "cross-spawn": "^6.0.5", "dts-bundle": "^0.7.3", "eslint": "^7.0.0", + "eslint-plugin-jsonc": "^1.4.0", + "eslint-plugin-node-dependencies": "^0.5.0", "fs-extra": "^7.0.1", "jsonc-eslint-parser": "^0.6.0", "mocha": "^6.1.4", @@ -60,7 +62,7 @@ "clean": "rimraf .nyc_output .temp coverage index.*", "codecov": "codecov", "coverage": "opener ./coverage/lcov-report/index.html", - "lint": "eslint src test --ext .js,.ts", + "lint": "eslint src test package.json --ext .js,.ts", "setup": "git submodule update --init && cd test/fixtures/eslint && npm install", "pretest": "run-s build lint", "test": "npm run -s test:mocha", diff --git a/tsconfig.json b/tsconfig.json index 69ed4035..189d89e2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,9 +12,7 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "inlineSources": true, - "lib": [ - "es2015" - ], + "lib": ["es2015"], "module": "commonjs", "moduleResolution": "node", "newLine": "LF", @@ -37,7 +35,5 @@ "strictNullChecks": true, "target": "es2015" }, - "include": [ - "src/**/*.ts" - ] + "include": ["src/**/*.ts"] }