mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
146 lines
2.1 KiB
Plaintext
146 lines
2.1 KiB
Plaintext
{
|
|
"env": {},
|
|
"globals": {},
|
|
"rules": {
|
|
"no-cond-assign": [
|
|
"error",
|
|
"except-parens"
|
|
],
|
|
"curly": [
|
|
"error",
|
|
"all"
|
|
],
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"computed-property-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"array-bracket-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"eqeqeq": [
|
|
"error",
|
|
"smart"
|
|
],
|
|
|
|
// Shows errors where jshint wouldn't (see jshint "expr" rule)
|
|
// clarifing this with eslint team
|
|
// "no-unused-expressions": "error",
|
|
"wrap-iife": [
|
|
"error",
|
|
"inside"
|
|
],
|
|
"no-caller": "error",
|
|
"quotes": [
|
|
"error",
|
|
"double",
|
|
"avoid-escape"
|
|
],
|
|
"no-undef": "error",
|
|
"no-unused-vars": "error",
|
|
"operator-linebreak": [
|
|
"error",
|
|
"after"
|
|
],
|
|
"comma-style": [
|
|
"error",
|
|
"last"
|
|
],
|
|
"camelcase": [
|
|
"error",
|
|
{
|
|
"properties": "never"
|
|
}
|
|
],
|
|
"dot-notation": [
|
|
"error",
|
|
{
|
|
"allowPattern": "^[a-z]+(_[a-z]+)+$"
|
|
}
|
|
],
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 100,
|
|
"ignoreComments": true
|
|
}
|
|
],
|
|
"no-mixed-spaces-and-tabs": "error",
|
|
"no-trailing-spaces": "error",
|
|
"no-multi-str": "error",
|
|
"comma-dangle": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"comma-spacing": [
|
|
"error",
|
|
{
|
|
"before": false,
|
|
"after": true
|
|
}
|
|
],
|
|
"space-before-blocks": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"space-in-parens": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"keyword-spacing": [
|
|
2
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"semi-spacing": [
|
|
"error",
|
|
{
|
|
// Because of the `for ( ; ...)` requirement
|
|
// "before": true,
|
|
"after": true
|
|
}
|
|
],
|
|
"space-infix-ops": "error",
|
|
"eol-last": "error",
|
|
"lines-around-comment": [
|
|
"error",
|
|
{
|
|
"beforeLineComment": true
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"no-with": "error",
|
|
"brace-style": "error",
|
|
"space-before-function-paren": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"no-loop-func": "error",
|
|
"no-spaced-func": "error",
|
|
"key-spacing": [
|
|
"error",
|
|
{
|
|
"beforeColon": false,
|
|
"afterColon": true
|
|
}
|
|
],
|
|
"space-unary-ops": [
|
|
"error",
|
|
{
|
|
"words": false,
|
|
"nonwords": false
|
|
}
|
|
],
|
|
"no-multiple-empty-lines": 2
|
|
}
|
|
}
|