Skip to content

Instantly share code, notes, and snippets.

@Aniruddha-Shriwant
Last active March 20, 2021 08:12
Show Gist options
  • Save Aniruddha-Shriwant/292f886a670af2e88dfebce822fba398 to your computer and use it in GitHub Desktop.
Save Aniruddha-Shriwant/292f886a670af2e88dfebce822fba398 to your computer and use it in GitHub Desktop.
Sample .eslintrc.json for Accord Project ( Web Components )
{
"extends": [
"@clausehq/eslint-config",
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"rules": {
"react/prop-types": 0,
"indent": ["error", 2],
"linebreak-style":1,
"require-jsdoc": [0, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"default-param-last": ["error"],
"eol-last": ["error", "always"],
"implicit-arrow-linebreak": ["error", "beside"],
"object-curly-spacing": ["error", "always"],
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"quotes": ["error", "single"]
},
"parser": "babel-eslint",
"plugins": [
"react",
"import",
"jsx-a11y"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment