Skip to content

Commit

Permalink
Drop esnext sub-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 15, 2021
1 parent 1a7e34d commit 3070e97
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
14 changes: 0 additions & 14 deletions esnext.js

This file was deleted.

12 changes: 1 addition & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ Or to `.eslintrc`:
}
```

Supports parsing ES2015+, but doesn't enforce it by default.

This package also exposes [`xo-space/esnext`](esnext.js) if you want ES2015+ rules:

```json
{
"extends": "xo-space/esnext"
}
```

And [`xo-space/browser`](browser.js) if you're in the browser:
This package also exposes [`xo-space/browser`](browser.js) if you're in the browser:

```json
{
Expand Down
9 changes: 0 additions & 9 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,3 @@ test('browser', t => {
t.true(isPlainObj(conf.rules));
t.is(runEslint(fixture, '../browser.js').length, 0);
});

test('esnext', t => {
const conf = require('../esnext');
t.true(isPlainObj(conf));
t.true(isPlainObj(conf.rules));

const errors = runEslint('class Foo {}\n', '../esnext.js');
t.is(errors[0].ruleId, 'no-unused-vars');
});

0 comments on commit 3070e97

Please sign in to comment.