6.2.0 • Published 4 years ago

eslint-config-osedea v6.2.0

Weekly downloads
718
License
-
Repository
-
Last release
4 years ago

eslint-config-osedea

Peer dependencies

eslint == 6.8.0 is a requirement. See external dependencies list below.

Configuring rules for project

eslint-config-osedea comes with the following environments, some of which are already pre-configured, however you can mix-and-match the environments if you want.

Config nameExtendsExternal Dependencies (besides eslint)
angular
cypresscypress
es5
esnextes5
flowflow-bin
jestjest, jest-dom, testing-library
mochamocha
nodeesnext, mocha
prettierprettier
reactesnext
react-nativereact
typescriptesnexttypescript

Create a file called .eslintrc.yml in the root of your project. Here, you will specify your rules, and extend one (or more) of the above rulesets.

Some example .eslintrc.yml configs:

extends:
  - osedea/react # extends other configs, see above
  - osedea/typescript
  - osedea/prettier # always needs to be last
extends:
  - osedea/react-native # extends other configs, see above
  - osedea/flow
  - osedea/prettier # always needs to be last
extends:
  - osedea/node # extends other configs, see above
extends:
  - osedea/es5
  - osedea/angular

# You can override rules from the linter here. Use at your own risk.
# rules:
#   comma-dangle: off # For example, if you do not want the linter to check for dangling commas ever

Global settings

Depending on your config, you may need to add a settings block to your .eslintrc.yml.

osedea/typescript

Add this block to your eslintrc:

parserOptions:
  project: './tsconfig.json'

If using VSCode & eslint errors aren't displaying, add this to your settings.json:

    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact"
    ],

osedea/react-native

For react-native config, in order to resolve imports (import x from CoolProject/.../...), the project name must be defined. The plugin will use the name param of the package.json in order to solve this.

{
  "name": "CoolProject",
  ...
}

osedea/node

For node config, it uses the engines section of package.json:

{
  ...
  engines: {
    "node": ">= 6.0.0"
  },
  ...
}

osedea/prettier

Needs to be added last so it is able to override other configs.

osedea/import

If you're using webpack to alias your directories, you can fix this by installing eslint-import-resolver-webpack and adding to your project's eslintrc:

settings:
  import/resolver: webpack

osedea/flow

Use a flow plugin for your editor (for example, flow language support for VSCode). Otherwise using eslint-plugin-flowtype-errors is an option.

6.2.0

4 years ago

6.1.0

4 years ago

6.0.2

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.9

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.12

8 years ago

0.2.11

8 years ago

0.2.10

8 years ago

0.2.9

8 years ago

0.2.8

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago