mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix: fix main export
This commit is contained in:
42
lib/index.js
42
lib/index.js
@@ -6,27 +6,27 @@ import blazeConsistentEventMapParams from './rules/eventmap-params'
|
||||
import preferSessionEquals from './rules/prefer-session-equals'
|
||||
import templateNamingConvention from './rules/template-names'
|
||||
|
||||
export default {
|
||||
rules: {
|
||||
'audit-argument-checks': auditArgumentChecks,
|
||||
'no-session': noSession,
|
||||
'no-template-lifecycle-assignments': noBlazeLifecycleAssignment,
|
||||
'no-zero-timeout': noZeroTimeout,
|
||||
'eventmap-params': blazeConsistentEventMapParams,
|
||||
'prefer-session-equals': preferSessionEquals,
|
||||
'template-names': templateNamingConvention,
|
||||
},
|
||||
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/prefer-session-equals': 0,
|
||||
'meteor/template-names': 2,
|
||||
},
|
||||
|
||||
export const rules = {
|
||||
'audit-argument-checks': auditArgumentChecks,
|
||||
'no-session': noSession,
|
||||
'no-template-lifecycle-assignments': noBlazeLifecycleAssignment,
|
||||
'no-zero-timeout': noZeroTimeout,
|
||||
'eventmap-params': blazeConsistentEventMapParams,
|
||||
'prefer-session-equals': preferSessionEquals,
|
||||
'template-names': templateNamingConvention,
|
||||
}
|
||||
|
||||
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/prefer-session-equals': 0,
|
||||
'meteor/template-names': 2,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "babel lib -d dist --optional runtime",
|
||||
"build:w": "npm run build -- --watch",
|
||||
"coverage:check": "nyc check-coverage --lines 100 --functions 100 --branches 100",
|
||||
"coverage:report": "nyc report",
|
||||
"clean": "rimraf dist",
|
||||
|
||||
Reference in New Issue
Block a user