Skip to content

Commit

Permalink
Merge pull request #92 from mrisoli/with-eslint
Browse files Browse the repository at this point in the history
add typescript-eslint
  • Loading branch information
mrisoli authored Feb 28, 2019
2 parents a05f7e1 + 3f55545 commit 90edd97
Show file tree
Hide file tree
Showing 13 changed files with 15,936 additions and 112 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
coverage
storybook-static

jest.config.js
jest.setup.js
next.config.js
30 changes: 30 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"google",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["eslint-plugin", "@typescript-eslint", "jest", "prettier", "react"],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/indent": ["error", 2]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ I am an avid user of [Next.js](https://github.com/zeit/next.js), their repo cont

- Typescript for type safety
- Jest for tests
- TSLint for linting
- Typescript-ESLint for linting
- Prettier for code formatting
- Styled-components for styling and theming along with polished
- Docker
Expand Down
Loading

0 comments on commit 90edd97

Please sign in to comment.