QQQ-30: got rid of 'prettier', first pass at eslint configuration pointing only to qqq specific files, reformated all qqq files

This commit is contained in:
Tim Chamberlain
2022-07-12 11:35:24 -05:00
parent cc324fd76d
commit 87d3f070fe
26 changed files with 2099 additions and 1959 deletions

View File

@ -3,7 +3,20 @@
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"extends": [
"plugin:react/recommended",
"airbnb"
],
"globals": {
"JSX": true
},
"ignorePatterns": [
"src/assets",
"src/components",
"src/context",
"src/examples",
"src/layouts"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
@ -12,37 +25,68 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"prettier/prettier": [
"brace-style": [
2,
"allman"
],
"indent": [
"error",
3
],
"import/extensions": [
"error",
"ignorePackages",
{
"endOfLine": "auto"
"ts": "never",
"tsx": "never",
"js": "never"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"max-len": "off",
"no-console": "off",
"react/prop-types": "off",
"no-shadow": "off",
"no-unused-vars": "off",
"no-plusplus": "off",
"spaced-comment": "off",
"object-shorthand": "off",
"react/prop-types": "off",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [
".tsx"
]
}
],
"react/jsx-indent": [
"error",
3
],
"react/jsx-indent-props": [
"error",
3
],
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"import/extensions": [
"quotes": [
"error",
"ignorePackages",
{ "ts": "never", "tsx": "never", "js": "never" }
],
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
"double"
]
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"globals": {
"JSX": true
}
}