0.12.0 • Published 5 years ago

@sishuguojixuefu/eslint-config v0.12.0

Weekly downloads
-
License
-
Repository
github
Last release
5 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

5 years ago

0.12.0

5 years ago

0.10.0

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.3

5 years ago

0.7.0

5 years ago

0.6.5

5 years ago

0.6.4

5 years ago

0.6.3

5 years ago

0.6.2

5 years ago

0.6.0

6 years ago

0.5.9

6 years ago

0.5.8

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.5

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago