1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-10-31 23:35:35 +01:00
blog/.eslintrc

50 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-07-11 17:56:13 +02:00
{
2019-10-02 13:35:50 +02:00
"extends": ["eslint:recommended", "prettier"],
2018-07-11 17:56:13 +02:00
"parserOptions": {
2021-02-17 00:37:35 +01:00
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"env": {
"browser": true,
"node": true,
"es2020": true,
"jest": true
2019-01-01 19:32:49 +01:00
},
2019-10-16 01:45:30 +02:00
"settings": {
"react": { "version": "detect" }
},
2019-10-02 13:35:50 +02:00
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"extends": [
2019-10-13 19:08:36 +02:00
"plugin:@typescript-eslint/eslint-recommended",
2019-10-02 13:35:50 +02:00
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
2019-12-14 13:53:07 +01:00
"plugin:react/recommended",
"plugin:testing-library/dom",
2019-12-14 13:53:07 +01:00
"plugin:testing-library/react"
2019-10-02 13:35:50 +02:00
],
2019-12-14 13:53:07 +01:00
"plugins": ["@typescript-eslint", "react", "testing-library"],
2019-10-02 13:35:50 +02:00
"rules": {
"object-curly-spacing": ["error", "always"],
"react/prop-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"testing-library/no-node-access": "off",
"testing-library/no-container": "off"
2019-10-02 13:35:50 +02:00
},
"parserOptions": {
2020-10-19 07:18:45 +02:00
"ecmaVersion": 2020,
2019-10-02 13:35:50 +02:00
"sourceType": "module",
2019-10-03 03:23:47 +02:00
"ecmaFeatures": {
"jsx": true
},
2019-10-13 19:08:36 +02:00
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
2019-10-02 13:35:50 +02:00
}
2019-01-01 19:32:49 +01:00
}
2019-10-02 13:35:50 +02:00
]
2018-07-11 17:56:13 +02:00
}