eslint-config-qlean
v3.0.0
Published
Qlean ESLint config for React
Downloads
3
Readme
eslint-config-qlean
Installation
Install config with peerDependencies by typing following command:
npm install -D eslint-config-qlean \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected]
Usage
Add "extends": "qlean"
to your .eslintrc
Motivation
global-require
"global-require": 0
Rule is redundant without Node.js
react/jsx-filename-extension
"react/jsx-filename-extension": [2, { "extensions": [".js"] }]
Use JSX only inside files with .js
extension
react/jsx-curly-spacing
"react/jsx-curly-spacing": [2, "never", { "allowMultiline": false }]
Use stricter option for disallow spaces in paired tags
react/jsx-tag-spacing
"react/jsx-tag-spacing": [2, {
"closingSlash": "never",
"beforeSelfClosing": "never",
"afterOpening": "never"
}]
Forbid spaces near closing bracket
react/destructuring-assignment
"react/destructuring-assignment": [always, { "ignoreClassFields": true }]
Allow to omit destructing props inside classes
no-loops/no-loops
"no-loops/no-loops": 2
Disallow use of loops (for, for-in, while, do-while, for-of)