Skip to content

Commit

Permalink
Update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Dec 29, 2014
1 parent ab9aeef commit f52552f
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 24 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
reports/**
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"ecmascript": 6,
"jsx": true
},
"globals": {
},
"plugins": [
],
"rules": {
// Possible Errors
"no-comma-dangle": 2,
Expand Down Expand Up @@ -141,10 +145,10 @@
"wrap-regex": 0,
// Legacy
"max-depth": [2, 3],
"max-len": 0,
"max-len": [2, 120],
"max-params": [2, 10],
"max-statements": [2, 10],
"no-bitwise": 2,
"no-plusplus": 0,
"no-plusplus": 0
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lib-cov
*.sublime-workspace
pids
logs
results
reports
build
node_modules
npm-debug.log
Expand Down
5 changes: 0 additions & 5 deletions .npmignore

This file was deleted.

6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- 0.10
- 0.11
after_success:
- npm run coveralls
36 changes: 20 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
{
"name": "eslint-plugin-react",
"version": "1.1.0",
"author": "Yannick Croissant <[email protected]>",
"description": "React specific linting rules for ESLint",
"main": "index.js",
"scripts": {
"test": "npm run lint && npm run unit-test --coverage && npm run check-coverage",
"test": "npm run lint && npm run unit-test",
"lint": "eslint ./",
"unit-test": "istanbul test --dir build/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --recursive --reporter dot",
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100",
"report-coverage-html": "istanbul report --dir build/coverage html"
"unit-test": "istanbul cover --dir reports/coverage _mocha tests/**/*.js -- --reporter dot",
"coveralls": "cat ./reports/coverage/lcov.info | coveralls"
},
"files": [
"LICENSE",
"README.md",
"index.js",
"lib"
],
"repository": {
"type": "git",
"url": "https://github.com/yannickcr/eslint-plugin-react"
},
"homepage": "https://github.com/yannickcr/eslint-plugin-react",
"bugs": "https://github.com/yannickcr/eslint-plugin-react/issues",
"devDependencies": {
"coveralls": "2.11.2",
"eslint": "0.11.0-alpha.0",
"eslint-tester": "0.3.0",
"istanbul": "0.3.0",
"mocha": "1.21.4"
},
"keywords": [
"eslint-plugin",
"eslintplugin",
"eslint",
"react"
],
"devDependencies": {
"eslint": "^0.11.0-alpha.0",
"eslint-tester": "^0.3.0",
"istanbul": "0.3.0",
"mocha": "1.21.4"
},
"author": "Yannick Croissant (https://github.com/yannickcr)",
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/yannickcr/eslint-plugin-react/master/LICENSE"
}
],
"bugs": {
"url": "https://github.com/yannickcr/eslint-plugin-react/issues"
},
"homepage": "https://github.com/yannickcr/eslint-plugin-react"
]
}

0 comments on commit f52552f

Please sign in to comment.