This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove babel and convert code to use CommonJS format. Convert rules to updated format (https://eslint.org/docs/developer-guide/working-with-rules). closes #654
- Loading branch information
Showing
58 changed files
with
725 additions
and
2,110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node_modules/** | ||
coverage/** | ||
dist/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
coverage | ||
dist | ||
node_modules | ||
npm-debug.log | ||
.nyc_output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,40 @@ | ||
import auditArgumentChecks from './rules/audit-argument-checks'; | ||
import noSession from './rules/no-session'; | ||
import noBlazeLifecycleAssignment from './rules/no-template-lifecycle-assignments'; | ||
import noZeroTimeout from './rules/no-zero-timeout'; | ||
import eventmapParams from './rules/eventmap-params'; | ||
import prefixEventmapSelectors from './rules/prefix-eventmap-selectors'; | ||
import preferSessionEquals from './rules/prefer-session-equals'; | ||
import templateNamingConvention from './rules/template-names'; | ||
import scopeDomLookups from './rules/scope-dom-lookups'; | ||
import noDomLookupOnCreated from './rules/no-dom-lookup-on-created'; | ||
import noTemplateParentData from './rules/no-template-parent-data'; | ||
|
||
export const rules = { | ||
'audit-argument-checks': auditArgumentChecks, | ||
'no-session': noSession, | ||
'no-template-lifecycle-assignments': noBlazeLifecycleAssignment, | ||
'no-zero-timeout': noZeroTimeout, | ||
'eventmap-params': eventmapParams, | ||
'prefix-eventmap-selectors': prefixEventmapSelectors, | ||
'prefer-session-equals': preferSessionEquals, | ||
'template-names': templateNamingConvention, | ||
'scope-dom-lookups': scopeDomLookups, | ||
'no-dom-lookup-on-created': noDomLookupOnCreated, | ||
'no-template-parent-data': noTemplateParentData, | ||
const allRules = { | ||
'audit-argument-checks': require('./rules/audit-argument-checks'), | ||
'no-session': require('./rules/no-session'), | ||
'no-template-lifecycle-assignments': require('./rules/no-template-lifecycle-assignments'), | ||
'no-zero-timeout': require('./rules/no-zero-timeout'), | ||
'eventmap-params': require('./rules/eventmap-params'), | ||
'prefix-eventmap-selectors': require('./rules/prefix-eventmap-selectors'), | ||
'prefer-session-equals': require('./rules/prefer-session-equals'), | ||
'template-names': require('./rules/template-names'), | ||
'scope-dom-lookups': require('./rules/scope-dom-lookups'), | ||
'no-dom-lookup-on-created': require('./rules/no-dom-lookup-on-created'), | ||
'no-template-parent-data': require('./rules/no-template-parent-data'), | ||
}; | ||
|
||
export const configs = { | ||
recommended: { | ||
rules: { | ||
'meteor/audit-argument-checks': 2, | ||
'meteor/no-session': 2, | ||
'meteor/no-template-lifecycle-assignments': 2, | ||
'meteor/no-zero-timeout': 2, | ||
'meteor/eventmap-params': 2, | ||
'meteor/prefix-eventmap-selectors': 0, | ||
'meteor/prefer-session-equals': 0, | ||
'meteor/template-names': 2, | ||
'meteor/scope-dom-lookups': 0, | ||
'meteor/no-dom-lookup-on-created': 0, | ||
'meteor/no-template-parent-data': 0, | ||
module.exports = { | ||
rules: allRules, | ||
configs: { | ||
recommended: { | ||
parserOptions: { | ||
ecmaVersion: 6, | ||
sourceType: 'module', | ||
ecmaFeatures: { jsx: true }, | ||
}, | ||
plugins: ['meteor'], | ||
rules: { | ||
'meteor/audit-argument-checks': 2, | ||
'meteor/no-session': 2, | ||
'meteor/no-template-lifecycle-assignments': 2, | ||
'meteor/no-zero-timeout': 2, | ||
'meteor/eventmap-params': 2, | ||
'meteor/prefix-eventmap-selectors': 0, | ||
'meteor/prefer-session-equals': 0, | ||
'meteor/template-names': 2, | ||
'meteor/scope-dom-lookups': 0, | ||
'meteor/no-dom-lookup-on-created': 0, | ||
'meteor/no-template-parent-data': 0, | ||
}, | ||
}, | ||
}, | ||
guide: { | ||
rules: {}, | ||
}, | ||
}; |
Oops, something went wrong.