Last active
May 3, 2020 17:49
-
-
Save guipeixoto/cb596adfc9fb9db8036da5e467817181 to your computer and use it in GitHub Desktop.
.eslintrc.json file configuration for airbnb standard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"airbnb-base", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint", | |
"plugin:prettier/recommended" | |
], | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": ["@typescript-eslint", "prettier"], | |
"rules": { | |
"prettier/prettier": "error", | |
"class-methods-use-this": "off", | |
"@typescript-eslint/camelcase": "off", | |
"@typescript-eslint/no-unused-vars": [ | |
"error", | |
{ | |
"argsIgnorePattern": "_" | |
} | |
], | |
"import/extensions": [ | |
"error", | |
"ignorePackages", | |
{ | |
"ts": "never" | |
} | |
] | |
}, | |
"settings": { | |
"import/resolver": { | |
"typescript": {} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"airbnb", | |
"plugin:@typescript-eslint/recommended", | |
"prettier/@typescript-eslint", | |
"prettier:prettier/recommended" | |
], | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier"], | |
"rules": { | |
"prettier/prettier": "error", | |
"react-hooks/rules-of-hooks": "error", | |
"react-hooks/exhaustive-deps": "warn", | |
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }], | |
"import/prefer-default-export": "off", | |
"@typescript-eslint/explicit-function-return-type": [ | |
"error", | |
{ | |
"allowExpressions": true | |
} | |
], | |
"import/extensions": [ | |
"error", | |
"ignorePackages", | |
{ | |
"ts": "never", | |
"tsx": "never" | |
} | |
] | |
}, | |
"settings": { | |
"import/resolver": { | |
"typescript": {} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment