-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create annual as a versioned clone of perennial, see phetsims/chipper…
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2018, University of Colorado Boulder | ||
// @author Michael Kauzmann | ||
|
||
|
||
/** | ||
* The node-specific eslint config applied only to "server-side" files that aren't run in sims. | ||
*/ | ||
module.exports = { | ||
extends: './node_eslintrc.js', | ||
env: { | ||
|
||
// specify appropriate environment vars for node code | ||
browser: false, | ||
node: true | ||
}, | ||
rules: { | ||
'bad-chipper-text': 'error' | ||
} | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2019, University of Colorado Boulder | ||
/* eslint-disable bad-sim-text */ | ||
|
||
/** | ||
* Lint detector for invalid text in chipper | ||
* Lint is disabled for this file so the bad texts aren't themselves flagged. | ||
* | ||
* @author Sam Reid (PhET Interactive Simulations) | ||
* @author Michael Kauzmann (PhET Interactive Simulations) | ||
*/ | ||
|
||
module.exports = function( context ) { | ||
|
||
const getBadTextTester = require( './getBadTextTester' ); | ||
|
||
// see getBadTextTester for schema. | ||
const forbiddenTextObjects = [ | ||
|
||
// chipper should use annual instead of perennial, so that it can check out specific versions | ||
'../perennial/js/' | ||
]; | ||
|
||
return { | ||
Program: getBadTextTester( forbiddenTextObjects, context ) | ||
}; | ||
}; | ||
|
||
module.exports.schema = [ | ||
// JSON Schema for rule options goes here | ||
]; |
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