mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-05 02:02:53 +01:00
6c471ae9f6
* Add eslint-plugin-simple-import-sort * Update .eslintrc.json * eslint --fix
23 lines
716 B
JSON
23 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"
|
|
}
|
|
}
|