Commit graph

25 commits

Author SHA1 Message Date
Christopher Willis-Ford
1635fbc9ab chore(deps): use @babel/eslint-parser instead of babel-eslint
this also required updating `eslint` itself

BREAKING CHANGE: peer dependency `@babel/eslint-parser@^7.11.0` has
replaced old peer dependency `babel-eslint >= 8.0.1`
2022-05-20 12:01:08 -07:00
BryceLTaylor
afb8d0c479 feat(comments): disable warning for todo comments 2021-02-16 15:11:53 -05:00
Paul Kaplan
ed99a27b45 feat(all): Move all warnings to errors
Make all previous warning rules into errors except the todo rule

BREAKING CHANGE: eslint4.0 and other dep updates, and all rule changes. Fixes .
2017-08-15 10:02:52 -04:00
Ray Schamp
a6d81174d2 feat(max-len): use ignoreUrls: true
Don't consider lines containing URLs as violating max-len
2016-11-23 17:32:14 -05:00
Christopher Willis-Ford
76c8f71322 feat(jsdoc): add more checks to valid-jsdoc rule
BREAKING CHANGE: Added stricter options from
http://eslint.org/docs/rules/valid-jsdoc
2016-10-25 14:33:21 -07:00
Ray Schamp
0b0c0c5f08 fix(base): Enforce spaced-comment
Comments should have a space after the opening comment character

BREAKING CHANGE: http://eslint.org/docs/rules/spaced-comment ([2])
2016-10-24 11:26:49 -04:00
Ray Schamp
e17fc601e0 fix(base): Enforce space-unary-ops
There should be spaces after word unary ops, but there shouldn't be spaces before nonword unary ops.

BREAKING CHANGE: http://eslint.org/docs/rules/space-unary-ops ([2])
2016-10-24 11:26:49 -04:00
Ray Schamp
3b2887b6a3 fix(base): Enforce space-infix-ops
There should be spaces around infix operators

BREAKING CHANGE: http://eslint.org/docs/rules/space-infix-ops ([2])
2016-10-24 11:26:49 -04:00
Ray Schamp
5280a2a4e9 fix(base): Enforce space-in-parens
There shouldn't be spaces in parens

BREAKING CHANGE: http://eslint.org/docs/rules/space-in-parens ([2])
2016-10-24 11:26:49 -04:00
Ray Schamp
39f5431a30 fix(base): Enforce object-curly-spacing
Objects shouldn't have spaces after the opening curly or before the closing one.

BREAKING CHANGE: http://eslint.org/docs/rules/object-curly-spacing ([2])
2016-10-24 11:26:49 -04:00
Ray Schamp
d87cbd650d fix(base): Enforce semi-spacing
Semicolons should have spaces after them, and not before them. Obviously.

BREAKING CHANGE: http://eslint.org/docs/rules/semi-spacing ([2])
2016-10-24 11:26:49 -04:00
Ray Schamp
394896edfe fix(base): Relax camelcase for object properties
Because of the addition of quote-props, the linter picked up non-camelcase object props. Object

properties shouldn't be linted for camelcase.
2016-10-24 11:26:49 -04:00
Ray Schamp
3309002c03 fix(base): Enforce quote-props
Object properties should not use quotes unless necessary, in which case all properties of the object

should use quotes.

BREAKING CHANGE: http://eslint.org/docs/rules/quote-props ([2, 'consistent-as-needed'])
2016-10-24 11:26:49 -04:00
Ray Schamp
b10b59d7a0 fix(base): Enforce func-call-spacing
BREAKING CHANGE: http://eslint.org/docs/rules/func-call-spacing ([2, 'always'])
2016-10-24 11:26:49 -04:00
Ray Schamp
baf20380fe fix(base): Enforce eol-last
BREAKING CHANGE: http://eslint.org/docs/rules/eol-last ([2, 'always'])
2016-10-24 11:26:49 -04:00
Ray Schamp
2a5294817a fix(base): Enforce comma-style
BREAKING CHANGE: http://eslint.org/docs/rules/comma-style ([2])
2016-10-24 11:26:48 -04:00
Ray Schamp
bd9e9fca67 fix(base): Enforce comma-spacing
BREAKING CHANGE: http://eslint.org/docs/rules/comma-spacing ([2])
2016-10-24 11:26:48 -04:00
Ray Schamp
324403c4cb fix(base): Enforce block-spacing
BREAKING CHANGE: http://eslint.org/docs/rules/block-spacing ([2, 'always'])
2016-10-24 11:26:48 -04:00
Ray Schamp
b1b0042cde fix(base): Enforce array-bracket-spacing
Array brackets should not have spaces inside of them

BREAKING CHANGE: http://eslint.org/docs/rules/array-bracket-spacing ([2, 'never'])
2016-10-24 11:26:21 -04:00
Ray Schamp
8f97688fe2 feat(base): Allow empty functions
We only ever use empty functions when we need them so why forbid them
2016-10-23 22:17:37 -04:00
Ray Schamp
463f664f96 fix(base): Update rules for scratch-vm
Adjustments to the rules made while linting scratch-vm

TODO-style comments now warn. Trailing commas are explicitly not allowed (previously assumed this

rule was in effect with eslint/recommended).
2016-10-23 18:11:30 -04:00
Ray Schamp
e00a1210ac fix(node): Split Node rules out from base config
We don't want to include Node-specific rules for the base configuration. This allows projects to

lint Node files separately from browser files.
2016-10-23 18:08:20 -04:00
Ray Schamp
999c359ea4 refactor(base): Use "js" as the base configuration
Having the base extend "js" was silly
2016-10-23 10:57:03 -04:00
Ray Schamp
f240c8bf3a fix(base): Set default rules to JS-only
This way, each project can use only the relevant rules
2016-10-22 18:04:20 -04:00
Ray Schamp
a9c8253225 Initial commit 2016-10-21 16:56:57 -04:00