Skip to content

Commit 9cd5af8

Browse files
43081jbmish
andauthored
feat!: move to ESM only (eslint-community#516)
* feat: move to ESM only * chore: move to c8 for esm support * chore: revert some mistaken replaces * fix: add no-meta-replaced-by to index * mocha timeout from 2000 to 3000 for slow no-property-in-node test * git ignore coverage/ * Revert "mocha timeout from 2000 to 3000 for slow no-property-in-node test" This reverts commit 8a8fb60. * chore: remove duplicate gitignore * chore: revert comment change --------- Co-authored-by: Bryan Mishkin <[email protected]>
1 parent c316040 commit 9cd5af8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+845
-825
lines changed

.eslint-doc-generatorrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
'use strict';
2-
3-
const prettier = require('prettier');
1+
import prettier from 'prettier';
42

53
/** @type {import('eslint-doc-generator').GenerateOptions} */
6-
module.exports = {
4+
const config = {
75
ignoreConfig: [
86
'all',
97
'all-type-checked',
@@ -29,3 +27,5 @@ module.exports = {
2927
urlConfigs:
3028
'https://github.com/eslint-community/eslint-plugin-eslint-plugin#presets',
3129
};
30+
31+
export default config;

.prettierrc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
singleQuote: true,
53
};

commitlint.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
'use strict';
2-
3-
module.exports = { extends: ['@commitlint/config-conventional'] };
1+
export default { extends: ['@commitlint/config-conventional'] };

configs/all-type-checked.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* @author 唯然<[email protected]>
44
*/
55

6-
'use strict';
6+
import plugin from '../lib/index.js';
77

8-
const plugin = require('../lib/index.js');
8+
const config = plugin.configs['flat/all-type-checked'];
99

10-
module.exports = plugin.configs['flat/all-type-checked'];
10+
export default config;

configs/all.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author 唯然<[email protected]>
55
*/
66

7-
'use strict';
7+
import plugin from '../lib/index.js';
88

9-
const plugin = require('../lib/index.js');
9+
const config = plugin.configs['flat/all'];
1010

11-
module.exports = plugin.configs['flat/all'];
11+
export default config;

configs/recommended.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author 唯然<[email protected]>
55
*/
66

7-
'use strict';
7+
import plugin from '../lib/index.js';
88

9-
const plugin = require('../lib/index.js');
9+
const config = plugin.configs['flat/recommended'];
1010

11-
module.exports = plugin.configs['flat/recommended'];
11+
export default config;

configs/rules-recommended.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author 唯然<[email protected]>
55
*/
66

7-
'use strict';
7+
import plugin from '../lib/index.js';
88

9-
const plugin = require('../lib/index.js');
9+
const config = plugin.configs['flat/rules-recommended'];
1010

11-
module.exports = plugin.configs['flat/rules-recommended'];
11+
export default config;

configs/rules.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author 唯然<[email protected]>
55
*/
66

7-
'use strict';
7+
import plugin from '../lib/index.js';
88

9-
const plugin = require('../lib/index.js');
9+
const config = plugin.configs['flat/rules'];
1010

11-
module.exports = plugin.configs['flat/rules'];
11+
export default config;

configs/tests-recommended.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author 唯然<[email protected]>
55
*/
66

7-
'use strict';
7+
import plugin from '../lib/index.js';
88

9-
const plugin = require('../lib/index.js');
9+
const config = plugin.configs['flat/tests-recommended'];
1010

11-
module.exports = plugin.configs['flat/tests-recommended'];
11+
export default config;

configs/tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* @author 唯然<[email protected]>
55
*/
66

7-
'use strict';
7+
import plugin from '../lib/index.js';
88

9-
const plugin = require('../lib/index.js');
9+
const config = plugin.configs['flat/tests'];
1010

11-
module.exports = plugin.configs['flat/tests'];
11+
export default config;

0 commit comments

Comments
 (0)