-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -57,3 +57,4 @@ typings/ | |
# dotenv environment variables file | ||
.env | ||
|
||
tags |
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,2 +1,17 @@ | ||
# eslint-config-frontier | ||
A common ESLint configuration setup for frontier apps to base off of. | ||
A common ESLint configuration for frontier apps to base off of. | ||
|
||
## Usage | ||
|
||
1. Run `npm install eslint-config-frontier --save-dev` from your Terminal. | ||
2. Add `"extends": "frontier"` to your eslint config. | ||
- Since you likely will not need to make a TON of changes to the eslint config, we recommend | ||
just putting a "eslintConfig" section in your package.json file. The minimum to start using | ||
this eslint config would look like the following. | ||
```json | ||
... | ||
"eslintConfig": { | ||
"extends": ["frontier"] | ||
}, | ||
... | ||
``` |
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,9 @@ | ||
module.exports = { | ||
parserOptions: { | ||
ecmaVersion: 8 | ||
}, | ||
env: { | ||
es6: true | ||
}, | ||
extends: ['eslint:recommended', 'frontier/lib/bestPractice', 'frontier/lib/style', 'frontier/lib/custom'] | ||
}; |
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,7 @@ | ||
module.exports = { | ||
rules: { | ||
'no-await-in-loop': 'error', | ||
'no-duplicate-imports': 'error', | ||
'no-console': 'off' | ||
} | ||
}; |
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,5 @@ | ||
module.exports = { | ||
plugins: ['security'], | ||
extends: ['plugin:security/recommended'], | ||
rules: {} | ||
}; |
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,7 @@ | ||
module.exports = { | ||
rules: { | ||
'no-multiple-empty-lines': ['warn', {max: 2}], | ||
'space-infix-ops': 'warn', | ||
'arrow-parens': ['warn', 'as-needed'] | ||
} | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "eslint-config-frontier", | ||
"version": "0.0.1", | ||
"description": "A common ESLint configuration setup for frontier apps to base off of.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/fs-webdev/eslint-config-frontier.git" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/fs-webdev/eslint-config-frontier/issues" | ||
}, | ||
"homepage": "https://github.com/fs-webdev/eslint-config-frontier#readme", | ||
"dependencies": { | ||
"eslint-plugin-security": "^1.4.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">= 4" | ||
} | ||
} |