Skip to content

Commit f52552f

Browse files
committed
Update config files
1 parent ab9aeef commit f52552f

File tree

7 files changed

+47
-24
lines changed

7 files changed

+47
-24
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/**
2+
reports/**

.eslintrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"ecmascript": 6,
77
"jsx": true
88
},
9+
"globals": {
10+
},
11+
"plugins": [
12+
],
913
"rules": {
1014
// Possible Errors
1115
"no-comma-dangle": 2,
@@ -141,10 +145,10 @@
141145
"wrap-regex": 0,
142146
// Legacy
143147
"max-depth": [2, 3],
144-
"max-len": 0,
148+
"max-len": [2, 120],
145149
"max-params": [2, 10],
146150
"max-statements": [2, 10],
147151
"no-bitwise": 2,
148-
"no-plusplus": 0,
152+
"no-plusplus": 0
149153
}
150154
}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ lib-cov
1010
*.sublime-workspace
1111
pids
1212
logs
13-
results
13+
reports
1414
build
1515
node_modules
1616
npm-debug.log

.npmignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- 0.10
4+
- 0.11
5+
after_success:
6+
- npm run coveralls

package.json

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,44 @@
11
{
22
"name": "eslint-plugin-react",
33
"version": "1.1.0",
4+
"author": "Yannick Croissant <[email protected]>",
45
"description": "React specific linting rules for ESLint",
56
"main": "index.js",
67
"scripts": {
7-
"test": "npm run lint && npm run unit-test --coverage && npm run check-coverage",
8+
"test": "npm run lint && npm run unit-test",
89
"lint": "eslint ./",
9-
"unit-test": "istanbul test --dir build/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --recursive --reporter dot",
10-
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100",
11-
"report-coverage-html": "istanbul report --dir build/coverage html"
10+
"unit-test": "istanbul cover --dir reports/coverage _mocha tests/**/*.js -- --reporter dot",
11+
"coveralls": "cat ./reports/coverage/lcov.info | coveralls"
1212
},
13+
"files": [
14+
"LICENSE",
15+
"README.md",
16+
"index.js",
17+
"lib"
18+
],
1319
"repository": {
1420
"type": "git",
1521
"url": "https://github.com/yannickcr/eslint-plugin-react"
1622
},
23+
"homepage": "https://github.com/yannickcr/eslint-plugin-react",
24+
"bugs": "https://github.com/yannickcr/eslint-plugin-react/issues",
25+
"devDependencies": {
26+
"coveralls": "2.11.2",
27+
"eslint": "0.11.0-alpha.0",
28+
"eslint-tester": "0.3.0",
29+
"istanbul": "0.3.0",
30+
"mocha": "1.21.4"
31+
},
1732
"keywords": [
1833
"eslint-plugin",
1934
"eslintplugin",
2035
"eslint",
2136
"react"
2237
],
23-
"devDependencies": {
24-
"eslint": "^0.11.0-alpha.0",
25-
"eslint-tester": "^0.3.0",
26-
"istanbul": "0.3.0",
27-
"mocha": "1.21.4"
28-
},
29-
"author": "Yannick Croissant (https://github.com/yannickcr)",
3038
"licenses": [
3139
{
3240
"type": "MIT",
3341
"url": "https://raw.github.com/yannickcr/eslint-plugin-react/master/LICENSE"
3442
}
35-
],
36-
"bugs": {
37-
"url": "https://github.com/yannickcr/eslint-plugin-react/issues"
38-
},
39-
"homepage": "https://github.com/yannickcr/eslint-plugin-react"
43+
]
4044
}

0 commit comments

Comments
 (0)