-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from department-of-veterans-affairs/feature/69…
…88-roettger-LintingPackage feature Create Linting Package
- Loading branch information
Showing
9 changed files
with
128 additions
and
30 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ on: | |
options: | ||
- components | ||
- tokens | ||
- linting | ||
version_bump: | ||
description: Version bump | ||
required: true | ||
|
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
Empty file.
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,5 @@ | ||
Copyright 2023 Department of Veterans Affairs | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
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,9 @@ | ||
# VA Design System Mobile ESLint Configuration | ||
|
||
This package contains an ESLint config for use by consumers of the [VA Design System Mobile Component Library](https://www.npmjs.com/package/@department-of-veterans-affairs/mobile-component-library) to automatically issue deprecation notices when outdated components are being used. | ||
|
||
## Getting Started | ||
These steps assume you already have `eslint` installed for your project as a devDependency and configured correctly. | ||
1. Add `eslint-plugin-deprecate` as a devDependency to your project (peerDependency of package) | ||
2. Add `@department-of-veterans-affairs/eslint-config-mobile` as a devDependency to your project | ||
3. In your eslint config file, add to the `extends` attribute: `@department-of-veterans-affairs/mobile` |
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,13 @@ | ||
module.exports = { | ||
plugins: ['deprecate'], | ||
rules: { | ||
'deprecate/import': [ | ||
'warn', | ||
{ | ||
name: 'VAButton', | ||
module: 'components', | ||
use: 'Button from @department-of-veterans-affairs/mobile-component-library', | ||
}, | ||
], | ||
}, | ||
} |
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,35 @@ | ||
{ | ||
"name": "@department-of-veterans-affairs/eslint-config-mobile", | ||
"version": "0.2.0-alpha.1", | ||
"description": "VA Design System Mobile ESLint Configuration", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/department-of-veterans-affairs/va-mobile-library.git" | ||
}, | ||
"keywords": [ | ||
"design", | ||
"system", | ||
"library", | ||
"eslint", | ||
"eslintConfig", | ||
"linter", | ||
"linting" | ||
], | ||
"maintainers": [ | ||
"@department-of-veterans-affairs/flagship-mobile-platform" | ||
], | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/department-of-veterans-affairs/va-mobile-library/issues" | ||
}, | ||
"homepage": "https://github.com/department-of-veterans-affairs/va-mobile-library#readme", | ||
"dependencies": { | ||
"eslint-plugin-deprecate": "^0.8.4" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">= 8" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.54.0" | ||
} | ||
} |
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