0.12.0 • Published 4 years ago

@sishuguojixuefu/eslint-config v0.12.0

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

@sishuguojixuefu/eslint-config

支持 vue、jsx、js、ts、tsx、html

Installation

yarn add -D @sishuguojixuefu/eslint-config

Fast Usage

Config in package.json:

{
  "eslintConfig": {
    "extends": ["@sishuguojixuefu"]
  },
  "eslintIgnore": ["!.eslintrc.js", "!.prettierrc.js", "index.js"],
  "prettier": "@sishuguojixuefu/eslint-config/.prettierrc.js"
}

Single File Usage

Add to your eslint config (.eslintrc.js):

module.exports = {
  root: true,
  extends: '@sishuguojixuefu',
}

react-native

module.exports = {
  root: true,
  extends: '@sishuguojixuefu',
  env: {
    'react-native/react-native': true,
  },
}

vue with ts

module.exports = {
  root: true,
  extends: '@sishuguojixuefu',
  parserOptions: {
    parser: '@typescript-eslint/parser',
    ecmaFeatures: {
      legacyDecorators: true,
    },
  },
}

More

.eslintignore

!.eslintrc.js
!.prettierrc.js

.prettierrc.js

module.exports = {
  ...require('@sishuguojixuefu/eslint-config/.prettierrc.js'),
}

.prettierignore

**/node_modules/*

.editorconfig

# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.gradle]
indent_size = 4

[BUCK]
indent_size = 4
0.11.0

4 years ago

0.12.0

4 years ago

0.10.0

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.3

4 years ago

0.7.0

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.0

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.5

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago