2.1.3 • Published 3 months ago

@globalfishingwatch/linting v2.1.3

Weekly downloads
33
License
MIT
Repository
-
Last release
3 months ago

@globalfishingwatch/linting

npm version GitHub license

Eslint config based on eslint-config-react-app with some custom rules and prettier integration

Installation

npx install-peerdeps --dev @globalfishingwatch/linting

# or
yarn add @globalfishingwatch/linting -D --peer

Usage

Eslint

Now add the config to either your package.json:

JS

{
  "eslintConfig": {
    "extends": "@globalfishingwatch/linting"
  }
}

to your .eslintrc:

{
  "extends": "@globalfishingwatch/linting"
}

Javascript

{
  "eslintConfig": {
    "extends": "@globalfishingwatch/linting/javascript"
  }
}

to your .eslintrc:

{
  "extends": "@globalfishingwatch/linting/javascript"
}

Next

{
  "eslintConfig": {
    "extends": "@globalfishingwatch/linting/next"
  }
}

to your .eslintrc:

{
  "extends": "@globalfishingwatch/linting/next"
}

Prettier

to your .prettierrc:

module.exports = require('@globalfishingwatch/linting/prettier')

Recommendations

VS Code

Install the ESLint and Prettier VSCode extensions:

ext install esbenp.prettier-vscode dbaeumer.vscode-eslint

Copy this to settings.json

  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": false, // avoids running the format twice,
  "eslint.autoFixOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },

LICENCE

MIT

2.1.3

3 months ago

2.1.2

3 months ago

2.1.1

3 months ago

2.1.0

3 months ago

2.0.2

2 years ago

1.8.1

3 years ago

1.8.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.6.2

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago