Skip to content

Commit

Permalink
Remove copyright plugin, replaced by a pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 26, 2024
1 parent 169b02d commit 54620e3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 213 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extends:
- plugin:lit/recommended

plugins:
- copyright
- '@typescript-eslint'

parser: '@typescript-eslint/parser'
Expand All @@ -34,7 +33,6 @@ rules:
- error
- nofunc
no-var: error
copyright/copyright: error
jsdoc/require-param-type: off
jsdoc/require-property-type: off
jsdoc/require-returns-type: off
Expand Down
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,7 @@ examples-hosted-apps: .build/gmf-apps.timestamp
npm run build-gmf-apps
touch $@

.build/node_modules.copyright.timestamp: .build/node_modules.timestamp
npm install --no-save --omit=optional --no-package-lock ./buildtools/copyright
touch $@

.build/eslint.timestamp: .build/node_modules.copyright.timestamp .eslintrc.yaml \
.build/eslint.timestamp: .eslintrc.yaml \
$(API_JS_FILES) \
$(NGEO_JS_FILES) \
$(NGEO_TEST_JS_FILES) \
Expand All @@ -212,24 +208,24 @@ examples-hosted-apps: .build/gmf-apps.timestamp
$(GMF_EXAMPLES_JS_FILES) \
$(GMF_APPS_JS_FILES) \
$(BUILD_JS_FILES)
./node_modules/.bin/eslint $(filter-out .build/node_modules.copyright.timestamp .eslintrc.yaml, $^)
./node_modules/.bin/eslint $(filter-out .eslintrc.yaml, $^)
touch $@

.build/eslint-ts.timestamp: .build/node_modules.copyright.timestamp .eslintrc.yaml \
.build/eslint-ts.timestamp: .eslintrc.yaml \
$(TS_FILES)
./node_modules/.bin/eslint --max-warnings=0 $(filter-out .build/node_modules.copyright.timestamp .eslintrc.yaml .eslintrc-ts.yaml, $^)
./node_modules/.bin/eslint --max-warnings=0 $(filter-out .eslintrc.yaml .eslintrc-ts.yaml, $^)
touch $@

.PHONY: eslint-fix
eslint-fix: .build/node_modules.copyright.timestamp .eslintrc.yaml \
eslint-fix: .eslintrc.yaml \
$(API_JS_FILES) \
$(NGEO_JS_FILES) \
$(NGEO_TEST_JS_FILES) \
$(NGEO_EXAMPLES_JS_FILES) \
$(GMF_EXAMPLES_JS_FILES) \
$(GMF_APPS_JS_FILES) \
$(BUILD_JS_FILES)
./node_modules/.bin/eslint --fix $(filter-out .build/node_modules.copyright.timestamp .eslintrc.yaml, $^)
./node_modules/.bin/eslint --fix $(filter-out .eslintrc.yaml, $^)

.build/examples-hosted/partials: examples/partials/
mkdir -p $(dir $@)
Expand Down
4 changes: 0 additions & 4 deletions buildtools/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
extends:
- eslint:recommended

plugins:
- copyright

parserOptions:
sourceType: module
ecmaVersion: 2020
Expand All @@ -23,4 +20,3 @@ rules:
- error
- nofunc
no-var: error
copyright/copyright: error
177 changes: 0 additions & 177 deletions buildtools/copyright/index.js

This file was deleted.

12 changes: 0 additions & 12 deletions buildtools/copyright/package-lock.json

This file was deleted.

6 changes: 0 additions & 6 deletions buildtools/copyright/package.json

This file was deleted.

3 changes: 1 addition & 2 deletions lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rules:
copyright/copyright: 0
rules: {}

0 comments on commit 54620e3

Please sign in to comment.