Skip to content

Commit 41e58dd

Browse files
committed
init
0 parents  commit 41e58dd

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
*.log

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# eslint-config-zavatta-react
2+
3+
> A beautiful eslint config for eslint-plugin-react.

index.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
'use strict';
2+
3+
module.exports = {
4+
5+
plugins: [
6+
'react'
7+
],
8+
rules: {
9+
'react/display-name': [2, { acceptTranspilerName: true }],
10+
'react/forbid-prop-types': 1,
11+
'react/jsx-boolean-value': 1,
12+
'react/jsx-closing-bracket-location': 0,
13+
'react/jsx-curly-spacing': 1,
14+
'react/jsx-indent-props': [2, 2],
15+
'react/jsx-max-props-per-line': 1,
16+
'react/jsx-no-duplicate-props': 1,
17+
'react/jsx-no-literals': 0,
18+
'react/jsx-no-undef': 1,
19+
'react/jsx-sort-prop-types': 1,
20+
'react/jsx-sort-props': 0,
21+
'react/jsx-uses-react': 1,
22+
'react/jsx-uses-vars': 1,
23+
'react/no-danger': 0,
24+
'react/no-did-mount-set-state': 1,
25+
'react/no-did-update-set-state': 1,
26+
'react/no-direct-mutation-state': 1,
27+
'react/no-multi-comp': 1,
28+
'react/no-set-state': 0,
29+
'react/no-unknown-property': 1,
30+
'react/prop-types': 0,
31+
'react/react-in-jsx-scope': 1,
32+
'react/require-extension': 1,
33+
'react/self-closing-comp': 1,
34+
'react/sort-comp': 1,
35+
'react/wrap-multilines': 1
36+
}
37+
38+
};

package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "eslint-config-zavatta-react",
3+
"version": "1.0.0",
4+
"description": "ESLint config for esling-plugin-react",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/42Zavattas/eslint-config-zavatta-react.git"
12+
},
13+
"keywords": [
14+
"eslint",
15+
"react",
16+
"zavatta"
17+
],
18+
"author": "meriadec <[email protected]>",
19+
"license": "BSD",
20+
"dependencies": {
21+
},
22+
"bugs": {
23+
"url": "https://github.com/42Zavattas/eslint-config-zavatta-react/issues"
24+
},
25+
"homepage": "https://github.com/42Zavattas/eslint-config-zavatta-react"
26+
}

0 commit comments

Comments
 (0)