Skip to content

Commit

Permalink
Initial setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrux committed Jun 1, 2021
0 parents commit cdaa836
Show file tree
Hide file tree
Showing 6 changed files with 1,743 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
9 changes: 9 additions & 0 deletions CHANGELOG.md
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.
38 changes: 38 additions & 0 deletions README.md
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',
};
}
```
18 changes: 18 additions & 0 deletions index.js
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 }],
},
};
Loading

0 comments on commit cdaa836

Please sign in to comment.