aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-06 09:22:10 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-06 09:22:10 -0700
commitf418231b6b2f5e030a0d2dcc390c314602b1f740 (patch)
tree10326adf3792bc2697e06bb5f2b8ef2a8f7e55fe /.eslintrc.json
parentb392a4af78e01c8e0f50aad5468e9583675b24be (diff)
downloadtrackermap-web-f418231b6b2f5e030a0d2dcc390c314602b1f740.tar.gz
trackermap-web-f418231b6b2f5e030a0d2dcc390c314602b1f740.tar.bz2
trackermap-web-f418231b6b2f5e030a0d2dcc390c314602b1f740.zip
Move modern to the top
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 00000000..6a60e087
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,37 @@
+{
+ "extends": "airbnb",
+ "parserOptions": {
+ "ecmaVersion": 2020
+ },
+ "overrides": [{
+ "files": ["*.jsx", "*.js"]
+ }],
+ "plugins": [
+ "react"
+ ],
+ "ignorePatterns": ["build/", "switcher.js", "theme.js"],
+ "rules": {
+ "max-len": [0],
+ "no-shadow": [0],
+ "no-return-assign": [0],
+ "no-param-reassign": [0],
+ "no-prototype-builtins": [0],
+ "object-curly-newline": [1, {
+ "ObjectExpression": { "minProperties": 8, "multiline": true, "consistent": true },
+ "ObjectPattern": { "minProperties": 8, "multiline": true, "consistent": true },
+ "ImportDeclaration": { "minProperties": 4, "multiline": true, "consistent": true },
+ "ExportDeclaration": { "minProperties": 4, "multiline": true, "consistent": true }
+ }],
+ "import/no-unresolved": [1, {
+ "ignore": ["\\.svg", "virtual:"]
+ }],
+ "react/function-component-definition": [1, {
+ "namedComponents": "arrow-function",
+ "unnamedComponents": "arrow-function"
+ }],
+ "react/jsx-props-no-spreading": [0],
+ "jsx-a11y/anchor-is-valid": [0],
+ "jsx-a11y/label-has-associated-control": [0],
+ "react/prop-types": [0]
+ }
+}