comandeer / eslint-config Goto Github PK
View Code? Open in Web Editor NEWShareable ESLint configuration
License: MIT License
Shareable ESLint configuration
License: MIT License
Currently the config allows ES2021 syntax, however the ES2022 one should be already supported to allow usage of e.g. private class fields.
Currently, ESLint is set to ES2019 and we're already in 2021…
The valid-jsdoc
rule is deprecated and should be removed from the config.
Currently, the config is designed to work only with JS code. However, it'd be good if it also worked with a TS one.
Seems to be pretty problematic and points to issues in correct places, e.g.:
t.teardown( sandbox.restore );
Let's update official Node.js support to >=16.12.0.
The last bump was quite long ago so let's do it!
As mlt is no longer maintained, let's rewrite tests to ava.
Let's drop formatting rules in favor of formatter, like dprint
.
Currently ESLint is constrained to ES2018 syntax, but we already have 2019!
Currently, the linter complains about globalThis
variable. Let's add it.
6.0.2
to 6.1.0
.This version is covered by your current version range and after updating it in your project the build failed.
mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
options
parameter (@plroebuck).jsonc
extension (@sstephant)These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
this.skip()
in "before each" hooks (@juergba)--allow-uncaught
for uncaught exceptions thrown inside hooks (@givanse)and some regressions:
Suite
cloning by copying root
property (@fatso83)The new version differs by 28 commits.
f4fc95a
Release v6.1.0
bd29dbd
update CHANGELOG for v6.1.0 [ci skip]
aaf2b72
Use cwd-relative pathname to load config file (#3829)
b079d24
upgrade deps as per npm audit fix; closes #3854
e87c689
Deprecate this.skip() for "after all" hooks (#3719)
81cfa90
Copy Suite property "root" when cloning; closes #3847 (#3848)
8aa2fc4
Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
586bf78
Update JS-YAML to address security issue (#3845)
d1024a3
Update doc examples "tests.html" (#3811)
1d570e0
Delete "/docs/example/chai.js"
ade8b90
runner.js: "self.test" undefined in Browser (#3835)
0098147
Replace findup-sync with find-up for faster startup (#3830)
d5ba121
Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
a3089ad
update package-lock
75430ec
Upgrade yargs-parser dependency to avoid loading 2 copies of yargs
There are 28 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Like "no only
", because that thing is really sneaky…
Dependencies weren't updated in a long time. Let's do it!
Currently there aren't any tests for any rules. It would be nice to add simple tests for every rule to check if they work correctly.
Let's switch from Travis to GHA!
Remove support for Node 6 and add support for Node 12.
After updating ESLint to ^6.0.0
, console
is not longer forbidden. It should be fixed.
Adhering to these rules can change the behavior of code, e.g. making async function sync will change the way of error handling.
Allowing using functions before definitions enables moving all helper functions to the bottom, after the main logic.
Let's rename it!
Current rules allow only async() => {}
, but it seems just weird.
The import attributes syntax is still not an official part of the ES standard, but I use it in my code – let's ensure that ESLint understands it.
It's 2021 already.
New, super big version of mlt is out. It's better to update it.
Currently, TS rules are mostly overwrites of non-working JS formatting rules. Let's add some real ones.
As mlt is no longer maintained, it's safe to drop mocha-oriented rules in favor of ava ones.
Currently the engine
field point at version 8.0.0 of Node.js, however, it should point at 12.0.0
Thanks to the feature of running only given steps, also this package can switch to mlt for testing.
Add official support for Windows and macOS.
Let's move formatting rules to a separate config.
Node 16 is old enough, let's remove the official support for it.
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Currently, the TS parser is used for all files. Let's use it only for TS ones.
CliEngine
is deprecated, ESLint
should be used instead.
Only tests should be able to access mocha globals and helpers (sinon, chai, etc.).
New major version of TypeScript parser is available.
5.13.0
to 5.14.0
.This version is covered by your current version range and after updating it in your project the build failed.
eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
85a04b3
Fix: adds conditional for separateRequires in one-var (fixes #10179) (#10980) (Scott Stern)0c02932
Upgrade: [email protected] (#11401) (Ilya Volodin)104ae88
Docs: Update governance doc with reviewers status (#11399) (Nicholas C. Zakas)ab8ac6a
Fix: Support boundary spread elements in sort-keys (#11158) (Jakub Rożek)a23d197
New: add allowSingleLineBlocks opt. to padded-blocks rule (fixes #7145) (#11243) (richie3366)e25e7aa
Fix: comma-spacing ignore comma before closing paren (fixes #11295) (#11374) (Pig Fang)a1f7c44
Docs: fix space-before-blocks correct code for "classes": "never" (#11391) (PoziWorld)14f58a2
Docs: fix grammar in object-curly-spacing docs (#11389) (PoziWorld)d3e9a27
Docs: fix grammar in “those who says” (#11390) (PoziWorld)ea8e804
Docs: Add note about support for object spread (fixes #11136) (#11395) (Steven Thomas)95aa3fd
Docs: Update README team and sponsors (ESLint Jenkins)51c4972
Update: Behavior of --init (fixes #11105) (#11332) (Nicholas C. Zakas)ad7a380
Docs: Update README team and sponsors (ESLint Jenkins)550de1e
Update: use default
keyword in JSON schema (fixes #9929) (#11288) (Pig Fang)983c520
Update: Use 'readonly' and 'writable' for globals (fixes #11359) (#11384) (Nicholas C. Zakas)f1d3a7e
Upgrade: some deps (fixes #11372) (#11373) (薛定谔的猫)3e0c417
Docs: Fix grammar in “there’s nothing prevent you” (#11385) (PoziWorld)de988bc
Docs: Fix grammar: Spacing improve -> Spacing improves (#11386) (PoziWorld)1309dfd
Revert "Build: fix test failure on Node 11 (#11100)" (#11375) (薛定谔的猫)1e56897
Docs: “the function actually use”: use -> uses (#11380) (PoziWorld)5a71bc9
Docs: Update README team and sponsors (ESLint Jenkins)82a58ce
Docs: Update README team and sponsors (ESLint Jenkins)546d355
Docs: Update README with latest sponsors/team data (#11378) (Nicholas C. Zakas)c0df9fe
Docs: ...
is not an operator (#11232) (Felix Kling)7ecfdef
Docs: update typescript parser (refs #11368) (#11369) (薛定谔的猫)3c90dd7
Update: remove prefer-spread autofix (fixes #11330) (#11365) (薛定谔的猫)5eb3121
Update: add fixer for prefer-destructuring
(fixes #11151) (#11301) (golopot)173eb38
Docs: Clarify ecmaVersion doesn't imply globals (refs #9812) (#11364) (Keith Maxwell)84ce72f
Fix: Remove extraneous linefeeds in one-var
fixer (fixes #10741) (#10955) (st-sloth)389362a
Docs: clarify motivation for no-prototype-builtins (#11356) (Teddy Katz)533d240
Update: no-shadow-restricted-names lets unassigned vars shadow undefined (#11341) (Teddy Katz)d0e823a
Update: Make --init run js config files through linter (fixes #9947) (#11337) (Brian Kurek)92fc2f4
Fix: CircularJSON dependency warning (fixes #11052) (#11314) (Terry)4dd19a3
Docs: mention 'prefer-spread' in docs of 'no-useless-call' (#11348) (Klaus Meinhardt)4fd83d5
Docs: fix a misleading example in one-var (#11350) (薛定谔的猫)9441ce7
Chore: update incorrect tests to fix build failing (#11354) (薛定谔的猫)The new version differs by 38 commits.
af9688b
5.14.0
0ce3ac7
Build: changelog update for 5.14.0
85a04b3
Fix: adds conditional for separateRequires in one-var (fixes #10179) (#10980)
0c02932
Upgrade: [email protected] (#11401)
104ae88
Docs: Update governance doc with reviewers status (#11399)
ab8ac6a
Fix: Support boundary spread elements in sort-keys (#11158)
a23d197
New: add allowSingleLineBlocks opt. to padded-blocks rule (fixes #7145) (#11243)
e25e7aa
Fix: comma-spacing ignore comma before closing paren (fixes #11295) (#11374)
a1f7c44
Docs: fix space-before-blocks correct code for "classes": "never" (#11391)
14f58a2
Docs: fix grammar in object-curly-spacing docs (#11389)
d3e9a27
Docs: fix grammar in “those who says” (#11390)
ea8e804
Docs: Add note about support for object spread (fixes #11136) (#11395)
95aa3fd
Docs: Update README team and sponsors
51c4972
Update: Behavior of --init (fixes #11105) (#11332)
ad7a380
Docs: Update README team and sponsors
There are 38 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Currently, the lint config tries to use a dummy, bundled tsconfig.json
file instead of the one in the project being linted. Let's fix that.
CI should be enabled also on Node 16.
Currently, the config is written with multirepo architecture in mind. Let's add some basic support for monorepos.
See: https://typescript-eslint.io/getting-started/typed-linting/monorepos/
All rules can be defined directly, especially that some rules from eslint:recommended
are overridden.
Let's move the codebase to ESM.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.