2020-10-06 00:44:57 +02:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
2020-10-06 22:33:42 +02:00
|
|
|
browser: true,
|
2020-10-06 00:44:57 +02:00
|
|
|
es6: true,
|
|
|
|
},
|
2020-10-27 20:29:00 +01:00
|
|
|
globals: {
|
|
|
|
L: "readonly",
|
|
|
|
},
|
2020-10-31 19:58:15 +01:00
|
|
|
extends: ["airbnb-typescript/base", "prettier", "prettier/@typescript-eslint"],
|
2020-10-06 00:44:57 +02:00
|
|
|
parser: "@typescript-eslint/parser",
|
2020-10-06 22:33:42 +02:00
|
|
|
parserOptions: {
|
|
|
|
sourceType: "module",
|
|
|
|
project: "./tsconfig.json",
|
|
|
|
ecmaFeatures: {
|
|
|
|
jsx: true,
|
|
|
|
},
|
|
|
|
},
|
2020-10-06 00:44:57 +02:00
|
|
|
plugins: ["@typescript-eslint", "prettier"],
|
|
|
|
rules: {
|
2020-10-07 00:25:31 +02:00
|
|
|
eqeqeq: "off",
|
2020-10-06 22:33:42 +02:00
|
|
|
// prettier
|
|
|
|
"prettier/prettier": ["error"],
|
|
|
|
// TypeScript
|
|
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
|
|
"@typescript-eslint/no-object-literal-type-assertion": "off",
|
|
|
|
// import
|
|
|
|
"import/extensions": [
|
|
|
|
"error",
|
|
|
|
"ignorePackages",
|
|
|
|
{
|
|
|
|
js: "never",
|
|
|
|
ts: "never",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
"import/resolver": {
|
|
|
|
node: {
|
|
|
|
extensions: [".js", ".ts", ".json"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"import/extensions": [".js", ".ts"],
|
2020-10-06 00:44:57 +02:00
|
|
|
},
|
|
|
|
};
|