forked from mpsq/arewewaylandyet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (31 loc) · 865 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const path = require("path")
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
"standard-with-typescript",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/babel",
"prettier/standard",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {},
ecmaVersion: 2018,
project: path.resolve(__dirname, "./tsconfig.json"),
tsconfigRootDir: __dirname,
sourceType: "module",
},
plugins: ["@typescript-eslint", "babel", "prettier", "standard"],
rules: {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-explicit-any": "off",
"quote-props": ["error", "as-needed"],
"object-shorthand": ["error", "always"],
"no-console": ["warn", { allow: ["warn", "error", "info"] }],
},
}