1.10.2 • Published 3 years ago

eslint-config-crypho v1.10.2

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

Crypho eslint configuration

This package contains the standard eslint configuration for Crypho.

It exposes separate configurations:: one for normal usage and one for React projects.

JavaScript

For Javascript projects you only need to add @crypho to your .eslintrc:

{
  "extends": [
    "crypho"
  ]
}

This will enable the following rules:

TypeScript

If you use Typescript you will also need to install some extra packages:

npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser --save-dev

or, if you use yarn:

yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser --only=dev

You must also add crypho/typescript to your .eslintrc configuration file:

{
  "extends": [
    "crypho",
    "crypho/typescript"
  ]
}

React

For React using projects you can also enable a set of React-specific rules:

{
  "extends": [
    "crypho",
    "crypho/react",
  ]
}

This enables several rules:

  • Use Babel to parse files
  • For *.jsx and *.tsx files:

    • Enable JSX parsing
    • Disable the unicorn/filename-case rule
  • Assume a browser environment in all files

  • The recommended rules from eslint-plugin-react

Command-line tools

For packages containing only command-line tools you can use the crypho/cli ruleset:

{
  "extends": [
    "crypho",
    "crypho/cli",
  ]
}

This will:

  • assume the node environment
  • allow console statements
1.10.2

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.1

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago