Skip to content

Instantly share code, notes, and snippets.

@Aniruddha-Shriwant
Last active March 10, 2021 20:07
Show Gist options
  • Save Aniruddha-Shriwant/864a79cea1a078616941f69e11735b31 to your computer and use it in GitHub Desktop.
Save Aniruddha-Shriwant/864a79cea1a078616941f69e11735b31 to your computer and use it in GitHub Desktop.
Sample .eslintrc.json for Accord Project ( Core Stack )
{
"extends": [
"@clausehq/eslint-config",
"eslint:recommended",
"plugin:import/errors",
"plugin:jsx-a11y/recommended",
"plugin:node/recommended"
],
"rules": {
"global-require":"warn",
"indent": ["error", 4],
"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"],
"semi": ["error", "always"]
},
"parser": "babel-eslint",
"plugins": [
"node",
"import",
"jsx-a11y"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"commonjs": 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