mirror of
https://github.com/actions/cache.git
synced 2024-11-09 22:21:06 +07:00
6c471ae9f6
* Add eslint-plugin-simple-import-sort * Update .eslintrc.json * eslint --fix
24 lines
716 B
JSON
24 lines
716 B
JSON
{
|
|
"env": { "node": true, "jest": true },
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": { "ecmaVersion": 2020, "sourceType": "module" },
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript",
|
|
"plugin:prettier/recommended",
|
|
"prettier/@typescript-eslint"
|
|
],
|
|
"plugins": ["@typescript-eslint", "simple-import-sort", "jest"],
|
|
"rules": {
|
|
"import/first": "error",
|
|
"import/newline-after-import": "error",
|
|
"import/no-duplicates": "error",
|
|
"simple-import-sort/sort": "error",
|
|
"sort-imports": "off"
|
|
}
|
|
}
|