0.1.0 • Published 12 months ago

@ofk/eslint-config v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@ofk/eslint-config

npm ci

@ofk/eslint-config is an eslint config that enables more rules than recommended. This is the base for @ofk/eslint-config-recommend.

Install

npm install --save-dev @ofk/eslint-config
npm install --save-dev $(npm info @ofk/eslint-config peerDependencies --json | jq -r 'to_entries | map("\(.key)@\(.value)") | join(" ")')

or

npx install-peerdeps --dev @ofk/eslint-config

Setup

// eslint.config.js
import config from '@ofk/eslint-config';

export default config();

You can customize it. For example:

import config from '@ofk/eslint-config';
import configPrettier from 'eslint-config-prettier';

export default config({
  extends: [configPrettier],
  ignores: ['dist/'],
  imports: {
    defaultExportFiles: ['src/routes/**'],
  },
  rules: {
    '@typescript-eslint/explicit-function-return-type': 'off',
  },
  settings: {
    'import/resolver': {
      typescript: {},
    },
  },
  ts: {
    strict: false,
  },
});
0.1.0

12 months ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago