2.8.1 • Published 1 year ago

@lemonbot.fun/eslint-config-vue v2.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

lemonbot/eslint-config-vue

Enhances Airbnb's ESLint config with TypeScript support

Setup

1) Install dependencies (and peer dependencies)

npm i eslint \
      @lemonbot.fun/eslint-config-vue \
      @typescript-eslint/eslint-plugin@^7.0.0 \
      @typescript-eslint/parser@^5.0.0 \
      typescript \
      -D
            
# eg: pnpm
pnpm add eslint \
        @lemonbot.fun/eslint-config-vue \
        @typescript-eslint/eslint-plugin@^7.0.0 \
        @typescript-eslint/parser@^5.0.0 \
        typescript \
        -D 
            
# eg: yarn
yarn add eslint \
        @lemonbot.fun/eslint-config-vue \
        @typescript-eslint/eslint-plugin@^7.0.0 \
        @typescript-eslint/parser@^5.0.0 \
        typescript \
        --dev

2) Configure ESLint

Within your ESLint config file:

extends: [
  '@lemonbot.fun/eslint-config-vue',
],

Setting import resolver.

If you are using vue-cli add config blow

settings: {
  'import/resolver': {
    webpack: {
      config: require.resolve('@vue/cli-service/webpack.config.js'),
    }
  }
},

If you are using webpack standalone, add config blow

settings: {
  'import/resolver': {
    webpack: {
      config: './path-to-your-webpack.config.js',
    }
  }
},

Credits

Authored and maintained by Jason Chang (Lemonbot).

License

Open source licensed as MIT.

2.8.1

1 year ago

2.8.0

1 year ago

2.7.1

2 years ago

2.7.0

2 years ago

2.6.3

2 years ago

2.6.2

2 years ago

2.6.5

2 years ago

2.6.4

2 years ago

2.6.7

2 years ago

2.6.6

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.5.1

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

1.13.2

3 years ago

1.13.1

3 years ago

1.13.3

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago