-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(confs): Base, React, Flowtype & Vue confs
There are now individual configurations for each type of project. The README has been reformatted to ease setup. I removed direct dependencies and we now enforce the user to install what he needs. The default setup is always: ESLint + prettier Then some custom plugins are used. The way the various config files are written may be a bit weird but I am unsure how multiple extends works (how the order is done) and we need to always have prettier last, so it might sometime be a bit redundant having prettier everywhere, seems to be working still. I'll publish this on the @next tag so you can try it: ```sh yarn add eslint-config-algolia@next --dev ``` Then follow the README
- Loading branch information
vvo
committed
Jun 16, 2017
1 parent
8ac0cb7
commit 9d0a17c
Showing
16 changed files
with
332 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: './index.js', | ||
extends: './base.js', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: node_js | ||
node_js: "6" | ||
node_js: stable | ||
cache: | ||
yarn: true | ||
directories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = { | ||
extends: [ | ||
'./base.js', | ||
'plugin:flowtype/recommended', | ||
'prettier', | ||
'prettier/flowtype', | ||
], | ||
plugins: ['flowtype'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = { | ||
extends: [ | ||
'./base.js', | ||
'plugin:react/recommended', | ||
'./rules/react.js', | ||
'prettier', | ||
'prettier/react', | ||
], | ||
plugins: ['react'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// eslint-disable-next-line import/no-commonjs | ||
module.exports = { | ||
rules: { | ||
'react/no-danger': ['off'], | ||
'react/display-name': ['off'], | ||
'react/jsx-key': ['error'], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: '../index.js' | ||
extends: '../react.js' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.