Files
e76f0fbe65 feat: Implement FlatESLint (#16149)
* New: FlatESLint class (refs #13481)

* More stuff working in isPathIgnored

* Fix more isPathIgnored() tests

* isPathIgnored is working

* loadFormatter works

* Most methods working

* Linter mostly working with FlatConfigArray

* Fix FlatConfigArray

* Initial Linter + FlatConfigArray tests passing

* FlatESLint lintText almost working

* More stuff working

* Make lintText() tests work

* Start work on lintFiles()

* More tests working

* Refactor

* Refactor findFiles()

* Fix error messages when no files found

* Fix some ignore file errors

* More tests working

* More tests passing

* Fix multiple processor tests

* Finish processors tests

* Fix more tests

* Fix more tests

* Fix some processor autofixing tests

* Tests for default ignore patterns passing

* More ignore tests fixed

* isPathIgnored() tests passing

* More tests passing

* Fix more tests

* More tests passing

* Fix globbing tests

* Fix more tests

* Fix ignores tests

* Enable more tests

* Constructor tests passing

* lintText tests passing

* more tests passing

* More tests passing

* Make fixtypes tests pass

* Add fatalErrorCount to ignore results

* Fix outputFixes tests

* Add FlatESLint to use-at-your-own-risk

* Disable cache option

* Fix lint errors

* Fix Node.js 12 compatibility

* Fix more tests

* fs/promises -> fs.promises

* Catch when no matching config found

* Rebase and fix lint errors

* Expose FlatRuleTester

* eslint-plugin-node -> eslint-plugin-n

* Fix unit test errors

* Make test pass in Node.js 12

* docs: Document flat config files

* Fix lint errors

* Fix default ignores

Co-authored-by: Brandon Mills <[email protected]>
2022-08-01 00:07:04 -04:00

6 lines
67 B
JavaScript

module.exports = {
rules: {
"missing-rule": 1
}
};