Skip to content

Commit 00cc8ee

Browse files
committed
initial use of the shared eslint config
1 parent 9c91dc0 commit 00cc8ee

8 files changed

+38
-2
lines changed

.eslintrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends: '@travi/travi/rules/es6'

Gruntfile.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint filenames/filenames: "off" */
2+
13
module.exports = function (grunt) {
24
require('time-grunt')(grunt);
35
require('load-grunt-config')(grunt, {
@@ -12,4 +14,4 @@ module.exports = function (grunt) {
1214
ghToken: process.env.GH_TOKEN
1315
}
1416
});
15-
};
17+
};

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
# React components for https://admin.travi.org
22

33
[![Build Status](https://img.shields.io/travis/travi/admin.travi.org-components.svg?style=flat)](https://travis-ci.org/travi/admin.travi.org-components)
4+
5+
## Local Development
6+
7+
### Install dependencies
8+
9+
```
10+
$ nvm install
11+
$ npm install
12+
$ bundle install
13+
```
14+
15+
### Run verification
16+
```
17+
npm test
18+
```

grunt/aliases.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
lint: scsslint
1+
lint:
2+
- eslint
3+
- scsslint
24

35
verify: lint
46

grunt/eslint.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
options:
2+
ignore: false
3+
4+
target:
5+
- "*.js"
6+
- grunt/**/*.js
7+
- lib/**/*.js*
8+
- src/**/*.js*
9+
- test/**/*.js*
10+
- .storybook/**/*.js

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
"homepage": "https://github.com/travi/admin.travi.org-components#readme",
2727
"devDependencies": {
2828
"@kadira/storybook": "1.20.0",
29+
"@travi/eslint-config-travi": "travi/eslint-config-travi#deps",
2930
"babel-core": "6.8.0",
3031
"babel-loader": "6.2.4",
3132
"babel-preset-es2015": "6.6.0",
3233
"babel-preset-react": "6.5.0",
3334
"greenkeeper-postpublish": "1.0.0",
3435
"grunt": "1.0.1",
3536
"grunt-cli": "1.2.0",
37+
"grunt-eslint": "18.1.0",
3638
"grunt-gh-pages": "1.1.0",
3739
"grunt-scsslint": "0.1.0",
3840
"load-grunt-config": "0.19.2",

test/.eslintrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends: '@travi/travi/rules/tests/base'

test/unit/.eslintrc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
extends:
2+
- '@travi/travi/rules/tests/mocha'
3+
- '@travi/travi/rules/tests/react'

0 commit comments

Comments
 (0)