-
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
0 parents
commit cdaa836
Showing
6 changed files
with
1,743 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
|
||
## 1.0.0 | ||
|
||
2021-06-01 | ||
|
||
- Created initial eslint config. |
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,38 @@ | ||
# Netzstrategen eslint config | ||
|
||
Standard eslint config for Netzstrategen projects. | ||
|
||
## Installation | ||
|
||
Install the configuration and all peer dependencies: | ||
|
||
```bash | ||
npm install --save-dev @netzstrategen/eslint-config eslint | ||
``` | ||
|
||
## Usage | ||
|
||
### Create the eslint configuration | ||
|
||
Create a [eslint configuration](https://eslint.org/docs/user-guide/configuring/configuration-files) js file: | ||
|
||
**.eslintrc.js** | ||
|
||
```js | ||
module.exports = { | ||
extends: ['@netzstrategen/eslint-config'], | ||
}; | ||
``` | ||
|
||
### Modifying the config | ||
|
||
Overwrite rules from the default Netzstrategen config: | ||
|
||
```js | ||
module.exports = { | ||
extends: ['@netzstrategen/eslint-config'], | ||
rules: { | ||
'no-invalid-this': '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,18 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
}, | ||
extends: ['airbnb-base'], | ||
plugins: ['import'], | ||
rules: { | ||
'comma-dangle': ['error', 'only-multiline'], | ||
'import/no-cycle': [0, { ignoreExternal: true }], | ||
quotes: [2, 'single', { avoidEscape: true }], | ||
}, | ||
}; |
Oops, something went wrong.