-
-
Notifications
You must be signed in to change notification settings - Fork 31
feat!: move to ESM only #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
24fd765
5f00256
f5414d9
89ad425
ba2fa3c
080bcfa
8a8fb60
478a904
b1f33d7
f790e2c
d2d5667
6fb2506
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
export default { | ||
singleQuote: true, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
'use strict'; | ||
|
||
module.exports = { extends: ['@commitlint/config-conventional'] }; | ||
export default { extends: ['@commitlint/config-conventional'] }; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/all-type-checked']; | ||
|
||
module.exports = plugin.configs['flat/all-type-checked']; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/all']; | ||
|
||
module.exports = plugin.configs['flat/all']; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/recommended']; | ||
|
||
module.exports = plugin.configs['flat/recommended']; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/rules-recommended']; | ||
|
||
module.exports = plugin.configs['flat/rules-recommended']; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/rules']; | ||
|
||
module.exports = plugin.configs['flat/rules']; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/tests-recommended']; | ||
|
||
module.exports = plugin.configs['flat/tests-recommended']; | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
import plugin from '../lib/index.js'; | ||
|
||
const plugin = require('../lib/index.js'); | ||
const config = plugin.configs['flat/tests']; | ||
|
||
module.exports = plugin.configs['flat/tests']; | ||
export default config; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is generated by hand now? Authors of new rules usually forget to update this kind of thing so just want to confirm There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is we could write a script to auto generate it if that helps There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's fine for now. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,19 @@ | |
* @author 薛定谔的猫<[email protected]> | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// ------------------------------------------------------------------------------ | ||
// Requirements | ||
// ------------------------------------------------------------------------------ | ||
|
||
const utils = require('../utils'); | ||
const { getStaticValue } = require('@eslint-community/eslint-utils'); | ||
import * as utils from '../utils.js'; | ||
import { getStaticValue } from '@eslint-community/eslint-utils'; | ||
|
||
// ------------------------------------------------------------------------------ | ||
// Rule Definition | ||
// ------------------------------------------------------------------------------ | ||
|
||
/** @type {import('eslint').Rule.RuleModule} */ | ||
module.exports = { | ||
const rule = { | ||
meta: { | ||
type: 'problem', | ||
docs: { | ||
|
@@ -167,3 +165,5 @@ module.exports = { | |
}; | ||
}, | ||
}; | ||
|
||
export default rule; |
Uh oh!
There was an error while loading. Please reload this page.